//-url：/tab/xxx/{page}
mixin pagination(url,page,pageTotal)
	- if(pageTotal)
		//上一页
		- if(page>1)
			a.item(href=url.replace(/{page}/,page-1)): i.left.arrow.icon
		- else
			a.disabled.item(href='#'): i.left.arrow.icon
		//中间页
		- var pageStart=page-2>0?page-2:1
		- var pageEnd=pageStart+4<pageTotal?pageStart+4:pageTotal
		- if(pageStart>1)
			a.disabled.item ...
		- for(var i=pageStart;i<=pageEnd;i++)
			a.item(href=url.replace(/{page}/,i),class=(page==i)?'active':'')=i
		- if(pageEnd<pageTotal)
			a.disabled.item ...
		//下一页
		- if(page<pageTotal)
			a.item(href=url.replace(/{page}/,page+1)): i.right.arrow.icon
		- else
			a.disabled.item(href='#'): i.right.arrow.icon